import regeneratorRuntime from '../../plugins/regenerator-runtime.js'
import { addVisitorFrequency } from '../../utils/encapsulation.js'//数据监控
import { Request_API_CN, Request_API_COM } from '../../utils/index.js'//封装请求
import login from '../../api/login.js';
import { prefix, surface } from '../../api/config.js';
const app = getApp();
let _this
Page({
  data: {
      data:[]
  },
  onLoad: function () {
    _this = this;
    _this.withdrawRecord();
    wx.showLoading({
      mask: true,
    })
  },
  withdrawRecord:()=>{
    Request_API_CN(prefix+'/withdrawRecord', 'POST', { openid: app.globalData.openid})
    .then((res)=>{
      console.log(res.data.data)
      _this.setData({
        data:res.data.data
      })
      wx.hideLoading()
    })
  }
})